﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
namespace BookForm.cls
{
    [Serializable]
    class User
    {

        private string _Name = string.Empty;

        public string Name
        {
            get { return _Name; }
            set
            {
                _Name = value;
                DelegateFunc.OnLogin();
            }
        }

        private string _Random = string.Empty;

        public string Random
        {
            get { return _Random; }
            set
            {
                _Random = value;
                DelegateFunc.OnLogin();
            }
        }

        private CookieCollection _Cookies;

        public CookieCollection Cookies
        {
            get
            {
                if (_Cookies == null)
                {
                    _Cookies = new CookieCollection();
                }
                return _Cookies;
            }
            set { _Cookies = value; }
        }
    }
}
